package net.onceface.core.domain.enums;

/**
 * 订单状态
 * **/
public enum OrderStatus {

	A("未支付"),
	B("未发货"),
	C("已发货"),
	D("已完成"),
	E("已取消"),
	Z("订单分析");
	
	private String label;
	
	private OrderStatus(String label) {
		this.label = label;
	}

	public String getLabel() {
		return label;
	}
	
	public static OrderStatus getByLabel(String label) {
		for (OrderStatus each : OrderStatus.values()) {
			if (each.getLabel().equals(label)) {
				return each;
			}
		}
		return null;
	}
}
